package com.dxy.serviceImpI;

import com.dxy.bean.RemindBean;
import com.dxy.mapper.RemindMapper;
import com.dxy.service.RemindService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

@Service
public class RemindServiceImpI implements RemindService {
    @Autowired
    private RemindMapper remindMapper;

    @Override
    public List<RemindBean> getAllTimeMessages(){
        return remindMapper.getAllTime();
    }

    public int saveRemindMessages(RemindBean remindBean) {
        return remindMapper.saveRemind(remindBean);
    }

    public RemindBean getTimeMessages(int meno_id) {
        return remindMapper.getTimeById(meno_id);
    }

    public int deleteRemindMessages(int meno_id) {
        return remindMapper.deleteRemind(meno_id);
    }
//    public int checkRemindMessages(int meno_id) {
//        return remindMapper.checkRemind(meno_id);
//    }
}